package com.hp.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate5.HibernateTemplate;

import com.hp.dao.OrderDao;

public class OrderDaoImpl implements OrderDao {
	private HibernateTemplate hibernateTemplate;
	
	
	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}


	@Override
	public List findOrder() {
		String hql="from Orders";
		List list = hibernateTemplate.find(hql);
		return list;
	}

}
